//package com.taotaojs.mylombok.test;
//
//import com.taotaojs.mylombok.annotation.MyAnnotationTest;
//
//import javax.annotation.processing.AbstractProcessor;
//import javax.annotation.processing.RoundEnvironment;
//import javax.annotation.processing.SupportedAnnotationTypes;
//import javax.annotation.processing.SupportedSourceVersion;
//import javax.lang.model.SourceVersion;
//import javax.lang.model.element.Element;
//import javax.lang.model.element.TypeElement;
//import javax.tools.Diagnostic;
//import java.util.Set;
//
//@SupportedSourceVersion(SourceVersion.RELEASE_8)
//@SupportedAnnotationTypes("com.taotaojs.mylombok.annotation.*")
//public class MyAnnotaionProcessor extends AbstractProcessor {
//    public MyAnnotaionProcessor() {
//        super();
//    }
//    @Override
//    public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
//        for (Element elem : roundEnv.getElementsAnnotatedWith(MyAnnotationTest.class)) {
//            MyAnnotationTest annotation = elem.getAnnotation(MyAnnotationTest.class);
//            String message = "annotation found in " + elem.getSimpleName()
//                    + " with  " + annotation.value();
////            addToString(elem);
//            processingEnv.getMessager().printMessage(Diagnostic.Kind.NOTE, message);
//        }
//        return true; // no further processing of this annotation type
//    }
//}
